How I can compile this C++ code that fails with "'::main' must return 'int'"? [migrated]

Posted by krisu on Super User See other posts from Super User or by krisu
Published on 2012-12-07T21:03:01Z Indexed on 2012/12/07 23:20 UTC
Read the original article Hit count: 139

Filed under:
|
|

I have tried to find a solution that make batch file start flashing on taskbar and only good solution was this post on Stack Overflow.

But I can't compile the code with WinGW or anything else to EXE, only getting this error:

hello.cpp:6:32: error: '::main' must return 'int'

Right now, I'm using TDM-GCC to compile code, because it's bit better...

Can somebody give me code that actually works or even better compile it to EXE already?

P.S. Even more better if somebody could compile this Delphi code, because I can't find any software that's free.

© Super User or respective owner

Related posts about compile

Related posts about c++